package my.test.mould.perfect;

public class HummerH1Model extends HummerModel {
    private boolean alarmFlag = true;
    @Override
    public void start() {
        System.out.println("悍马H1启动....");
    }

    @Override
    public void stop() {
        System.out.println("悍马H1停止");
    }

    @Override
    public void alarm() {
        System.out.println("悍马H1鸣笛..");
    }

    @Override
    public void engineBoom() {
        System.out.println("悍马H1引擎声音...");
    }

    public boolean isAlarmFlag() {
       return this.alarmFlag = alarmFlag;
    }

    public void setAlarmFlag(boolean alarmFlag) {
        this.alarmFlag = alarmFlag;
    }


}
